ModeCompat

Compat class which provides access to the underlying display mode, if there is one, and a more reliable display mode size.

Functions

Link copied to clipboard
Returns the physical height of the given display when configured in this mode.
Link copied to clipboard
open fun getPhysicalWidth(): Int
Returns the physical width of the given display when configured in this mode.
Link copied to clipboard
open fun isNative(): Boolean
This field indicates whether a mode has the same resolution as the current display mode.
Link copied to clipboard
Returns the wrapped object Display.Mode, which may be null if no mode is available.